<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8" import="java.util.List,java.util.*"%>
    <% HttpSession s = request.getSession();%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
 <%! 
	public static int singlePV;
    public static int singleUV;
    List<String> list =new ArrayList<String>(); 
%> 
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Insert title here</title>
</head>
<body>
	
	
	<a href="Page1.jsp">Page1</a>
	<a href="Page2.jsp">Page2</a>
	<a href="Page3.jsp">Page3</a>
	<p>此网站一共被访问了<%=application.getAttribute("pageview")%>次</p>
	<p>此网站的访客一共有<%=application.getAttribute("uv") %>个</p>
	<%if(request != null){
		singlePV++;
	} %>
	<p>此网页一共被访问了<%=singlePV %>次</p>
	<%if(!list.contains(s.getId())){
		list.add(s.getId());
		singleUV++;
	}%>
	<p>此网页的访客一共有<%=singleUV %>个</p>
</body>
</html>